/*
 * Move.cpp
 *
 *  Created on: Mar 30, 2011
 *      Author: cnwilson
 */

#include "../inc/Move.h"



	Move::Move(Position& _src,Position& _dst, Piece *_moved,Piece *_captured):src(_src), dst(_dst){
		moved=_moved;
		captured=_captured;
	}

	Move::Move(const Move& other):src(other.src), dst(other.dst){
		moved=other.moved;
		captured=other.captured;
	}

	Move::~Move(){

	}

	Position Move::getSource(){
		return src;
	}
	Position Move::getDest(){
		return dst;
	}
	Piece*	Move::getMovedPiece(){
		return moved;
	}
	Piece*	Move::getCapturedPiece(){
		return captured;
	}

//	ostream operator<<(ostream& stream,const Move &other){
//		stream << "<move> \n\t";
//		//TODO!!!
//		return stream;
//	}
